package com.mars.algorithm.proxy;

import com.mars.algorithm.proxy.People;
import com.mars.algorithm.proxy.Person;
import com.mars.algorithm.proxy.Student;
import com.mars.algorithm.proxy.jdk.JdkProxy;

/**
 * @Author King
 * @create 2020/8/26 16:05
 */
public class Test {

    public static void main(String[] args) {

        JdkProxy proxy = new JdkProxy();
        Student target = new Student();
        Person s = (Person) proxy.JdkProxy(target);
        People p = (People) proxy.JdkProxy(target);
        s.study();
        p.run();

    }
}
